import { reactive } from 'vue';

export function useSubTable() {
  const productConfig = reactive({
    title: '商品明细',
    columns: (checkedRow) => {
      return [{ title: '1', field: 'a' }];
    },
    query: (params) => {
      return Promise.resolve({ data: [{ a: 1 }] });
    }
  });

  return productConfig;
}
